package com.computergames.server.util;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum StatusEnum {
    SUCCESS(200, "成功"),
    ERROR(500, "失败"),
    LOGIN_ERROR(500, "登录失败"),
    LOGIN_SUCCESS(200, "登录成功"),
    LOGIN_ERROR_PASSWORD(500, "密码错误"),
    LOGIN_ERROR_USERNAME(500, "用户名不存在"),
    LOGIN_ERROR_USERNAME_PASSWORD(500, "用户名或密码错误"),
    LOGIN_ERROR_USERNAME_PASSWORD_TOKEN(500, "用户名或密码或token错误"),
    REQUEST_HEADER_ERROR(400, "请求错误");
    private final int code;
    private final String message;
}
